package com.gxitsky.behavioral.pipeline2;

import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author gxing
 * @desc TODO
 * @date 2022/3/29
 */
@Slf4j
public class PipeManager {

    private static List<Pipe> pipePools = new ArrayList<>();

    public static List<Pipe> getPipes() {
        return pipePools;
    }

    public static void register(Pipe pipe){
        if(!pipePools.contains(pipe)){
            pipePools.add(pipe);
        }
    }



}
